import $ from "../common";

let menu = () => {
  let data = [{
      name: "我的功能",
      list: [{
          name: "教学安排",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/45332c2a-85bd-11ec-a983-00163e04cc20.png",
          url: "../person/timetables",
          width: 36,
          height: 36,
          x: 1,
          y: 0,
        },
        {
          name: "上课点名",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/c3a39bbc-85bd-11ec-a983-00163e04cc20.png",
          url: "../student/callname",
          width: 36,
          height: 36,
          x: 1,
          y: 1,
        },
        // {
        //   name: "缺勤记录",
        //   imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/cbc6332e-8971-11ec-a983-00163e04cc20.png",
        //   url: "../../packageA/makeup/leaveRecord",
        //   width: 36,
        //   height: 36,
        //   x: 2,
        //   y: 4,
        // },
        // {
        //   name: "补课安排",
        //   imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/85c12b5c-8973-11ec-a983-00163e04cc20.png",
        //   url: "../campus/stuleave",
        //   width: 36,
        //   height: 36,
        //   x: 2,
        //   y: 5,
        // },
        {
          name: "学员点评",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/c8f20f0e-8973-11ec-a983-00163e04cc20.png",
          url: "../growing/list",
          width: 36,
          height: 36,
          x: 1,
          y: 2,
        },
        {
          name: "作业管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/cd2368c4-85be-11ec-a983-00163e04cc20.png",
          url: "../homework/list",
          width: 36,
          height: 36,
          x: 1,
          y: 3,
        },
        {
          name: "报名交费",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/29ddbbbc-87bf-11ec-a983-00163e04cc20.png",
          url: "../pay/payment",
          width: 36,
          height: 36,
          x: 2,
          y: 9,
        },
        {
          name: "宣传海报",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/8a6774d4-85bf-11ec-a983-00163e04cc20.png",
          type: "webview",
          url: "/h5#/poster_index",
          width: 36,
          height: 36,
          x: 3,
          y: 1,
        },
        {
          name: "在线活动",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/5565aa9e-85bf-11ec-a983-00163e04cc20.png",
          url: "../../packageA/activity/list",
          width: 36,
          height: 36,
          x: 3,
          y: 0,
        },
      ],
    },
    {
      name: "教学教务",
      list: [{
          name: "教学安排",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/45332c2a-85bd-11ec-a983-00163e04cc20.png",
          url: "../person/timetables",
          width: 36,
          height: 36,
          x: 1,
          y: 0,
        },
        {
          name: "上课点名",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/c3a39bbc-85bd-11ec-a983-00163e04cc20.png",
          url: "../student/callname",
          width: 36,
          height: 36,
          x: 1,
          y: 1,
        },
        {
          name: "签到中心",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/e34c623c-85bd-11ec-a983-00163e04cc20.png",
          url_history: "../clock/index",
          url: "../../packageA/clock/index",
          width: 36,
          height: 36,
          x: 1,
          y: 4,
        },
        {
          name: "教师管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/a79ddc0e-85c0-11ec-a983-00163e04cc20.png",
          url: "../teacher/list",
          width: 36,
          height: 36,
          x: 2,
          y: 2,
        },
        {
          name: "缺勤记录",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/cbc6332e-8971-11ec-a983-00163e04cc20.png",
          url: "../../packageA/makeup/leaveRecord",
          width: 36,
          height: 36,
          x: 2,
          y: 4,
        },
        {
          name: "补课安排",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/85c12b5c-8973-11ec-a983-00163e04cc20.png",
          url: "../campus/stuleave",
          width: 36,
          height: 36,
          x: 2,
          y: 5,
        },
        {
          name: "图书借阅",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/201bd8fa-85be-11ec-a983-00163e04cc20.png",
          url: "../book/index",
          width: 36,
          height: 36,
          x: 1,
          y: 5,
        },
        {
          name: "课卡管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/82c075d8-85be-11ec-a983-00163e04cc20.png",
          url: "../card/list",
          width: 36,
          height: 36,
          x: 2,
          y: 8,
        },
        {
          name: "云相册",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/02e6dffa-85be-11ec-a983-00163e04cc20.png",
          url: "../../packageA/album/index",
          width: 36,
          height: 36,
          x: 1,
          y: 6,
        }
      ],
    },
    {
      name: "家校互动",
      list: [
        // {
        //   name: "学习打卡",
        //   imgURL:
        //     "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/9b25f756-85be-11ec-a983-00163e04cc20.png",
        //   url: "../../packageA/clockin/index",
        //   width: 36,
        //   height: 36,
        //   x: 1,
        //   y: 7,
        // },
        {
          name: "消息通知",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/00d084ae-85bf-11ec-a983-00163e04cc20.png",
          url: "../../packageA/message/customlist?type=load",
          width: 36,
          height: 36,
          x: 4,
          y: 0,
        },
        {
          name: "学员点评",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/c8f20f0e-8973-11ec-a983-00163e04cc20.png",
          url: "../growing/list",
          width: 36,
          height: 36,
          x: 1,
          y: 2,
        },
        {
          name: "作业管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/cd2368c4-85be-11ec-a983-00163e04cc20.png",
          url: "../homework/list",
          width: 36,
          height: 36,
          x: 1,
          y: 3,
        },
        {
          name: "学员生日",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/e2a86802-85be-11ec-a983-00163e04cc20.png",
          url: "../index/birthdayStu",
          width: 36,
          height: 36,
          x: 2,
          y: 9,
        },
        // {
        //   name: "消息通知",
        //   imgURL:
        //     "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/00d084ae-85bf-11ec-a983-00163e04cc20.png",
        //   url: "../../packageA/message/customlist?type=load",
        //   width: 36,
        //   height: 36,
        //   x: 4,
        //   y: 0,
        // },
        {
          name: "学习打卡",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/9b25f756-85be-11ec-a983-00163e04cc20.png",
          url: "../../packageA/clockin/index",
          width: 36,
          height: 36,
          x: 1,
          y: 7,
        },
        {
          name: "学员" + wx.getStorageSync("points_name") || "积分",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/25c59b8c-85bf-11ec-a983-00163e04cc20.png",
          url: "../points/index",
          width: 36,
          height: 36,
          x: 2,
          y: 6,
        },
      ],
    },
    {
      name: "招生营销",
      list: [{
          name: "在线活动",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/5565aa9e-85bf-11ec-a983-00163e04cc20.png",
          url: "../../packageA/activity/list",
          width: 36,
          height: 36,
          x: 3,
          y: 0,
        },
        {
          name: "轻地推",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/69c8c674-85bf-11ec-a983-00163e04cc20.png",
          url: "../../packageA/ditui/index?title=轻地推",
          width: 36,
          height: 36,
          x: 3,
          y: 0,
        },
        {
          name: "宣传海报",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/8a6774d4-85bf-11ec-a983-00163e04cc20.png",
          type: "webview",
          url: "/h5#/poster_index",
          width: 36,
          height: 36,
          x: 3,
          y: 1,
        },
        {
          name: "转介绍",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/0e4aa4b2-8974-11ec-a983-00163e04cc20.png",
          url: "../referral/index",
          width: 36,
          height: 36,
          x: 3,
          y: 3,
        },
        {
          name: "学员跟进",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/b974c4b6-85bf-11ec-a983-00163e04cc20.png",
          url: "../consult/list",
          width: 36,
          height: 36,
          x: 3,
          y: 3,
        },
        {
          name: "优惠券",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/e57ca882-8973-11ec-a983-00163e04cc20.png",
          url: "../coupon/index",
          width: 36,
          height: 36,
          x: 3,
          y: 2,
        },
        {
          name: "报名缴费",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/29ddbbbc-87bf-11ec-a983-00163e04cc20.png",
          url: "../pay/payment",
          width: 36,
          height: 36,
          x: 2,
          y: 10,
        },
      ],
    },
    {
      name: "校区管理",
      list: [{
          name: "课程管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/6fca640a-85c0-11ec-a983-00163e04cc20.png",
          url: "../course/list",
          width: 36,
          height: 36,
          x: 2,
          y: 1,
        },
        {
          name: "课表管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/5b3183de-85c0-11ec-a983-00163e04cc20.png",
          url: "../campus/table",
          width: 36,
          height: 36,
          x: 2,
          y: 3,
        },
        {
          name: "数据魔方",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/e58790f0-85c0-11ec-a983-00163e04cc20.png",
          type: "webview",
          url: "/page/ec34c78b-604e-11eb-a832-00163e04cc20.html",
          width: 36,
          height: 36,
          x: 2,
          y: 7,
        },

        // {
        //   name: "教师管理",
        //   imgURL:
        //     "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/a79ddc0e-85c0-11ec-a983-00163e04cc20.png",
        //   url: "../teacher/list",
        //   width: 36,
        //   height: 36,
        //   x: 2,
        //   y: 2,
        // },
        {
          name: "课材管理",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/d2d4af10-85c0-11ec-a983-00163e04cc20.png",
          url: "../campus/kucun",
          width: 36,
          height: 36,
          x: 2,
          y: 7,
        },
        {
          name: "老师招聘",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/be04a004-85c0-11ec-a983-00163e04cc20.png",
          url: "../teacher/recruit",
          width: 36,
          height: 36,
          x: 2,
          y: 11,
        },


        {
          name: "校区设置",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/56aec31e-8974-11ec-a983-00163e04cc20.png",
          url: "../../packageA/person/setting",
          width: 36,
          height: 36,
          x: 2,
          y: 7,
        },
        {
          name: "机构信息",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/40bb6896-8974-11ec-a983-00163e04cc20.png",
          url: "../campus/detail",
          width: 36,
          height: 36,
          x: 2,
          y: 0,
        },

        {
          name: "收银管家",
          imgURL: "https://sxzimgs.oss-cn-shanghai.aliyuncs.com/yingxiao/page/f9f572c8-85c0-11ec-a983-00163e04cc20.png",
          type: "webview",
          url: "/page/0d28a213-6154-11eb-a832-00163e04cc20.html",
          width: 36,
          height: 36,
          x: 2,
          y: 7,
        },
      ],
    },
  ];

  if ($.isTeacher()) {
    data[0].list = $.setDelete(data[0].list, 6);
    data[0].list = $.setDelete(data[0].list, 5);
    data[0].list = $.setDelete(data[0].list, 4);
    data[0].list = $.setDelete(data[0].list, 3);
    data = $.setDelete(data, 3);
    data = $.setDelete(data, 2);
  }

  return data;
};

export default {
  json: menu,
};